﻿using PoliticalClassifier.Support;
using System;

namespace PoliticalClassifier.Domain
{
    /// <summary>
    /// Class represents a Voter's attributes in a given dataset.
    /// </summary>
    public class VoterAttribute : IVoterAttribute
    {
        #region Construction
        /// <summary>
        /// Initialize voter's attribute by providing Name and Value.
        /// </summary>
        /// <param name="name">Name of the attribute.</param>
        /// <param name="value">Value of the attribute.</param>
        public VoterAttribute(String name, double value)
        {
            m_name = name;
            m_value = value;
        }
        #endregion

        #region Public Properties
        /// <summary>
        /// Get the name of the attribute.
        /// </summary>
        public String Name 
        { 
            get { return m_name; } 
        }

        /// <summary>
        /// Get the value of the attribute.
        /// </summary>
        public double Value
        {
            get { return m_value; }
        }
        #endregion

        #region Private Fields
        private String m_name;
        private double m_value;
        #endregion
    }
}
